Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSA: convert to bin with length in constant time #6896

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

SparkiDev
Copy link
Contributor

Description

Add mp_to_unsigned_bin_len_ct() which puts a number into a buffer with padding in constant time.
Call mp_to_unsigned_bin_len_ct() in RSA when encoding result of exponentiation.

Fixes zd#16722

Testing

Standard

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

Add mp_to_unsigned_bin_len_ct() which puts a number into a buffer with
padding in constant time.
Call mp_to_unsigned_bin_len_ct() in RSA when encoding result of
exponentiation.
@SparkiDev
Copy link
Contributor Author

retest this please

@SparkiDev SparkiDev removed their assignment Oct 20, 2023
@JacobBarthelmeh JacobBarthelmeh merged commit 6d8136c into wolfSSL:master Oct 25, 2023
103 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants